Skip to content

fix(fleet): include PM conformance fixture in nix source - #13639

Merged
dezren39 merged 4 commits into
mainfrom
lane-code-h-13617
Nov 24, 2026
Merged

dezren39 merged 4 commits into
mainfrom
lane-code-h-13617

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

 pkgs/fleet/crates/fleet/src/gh_metadata.rs
-  fixture path = CARGO_MANIFEST_DIR/../../../../doc/... (outside fleetSrc)
+  fixture path = CARGO_MANIFEST_DIR/tests/fixtures/pm-metadata-v1.json
+  assert byte-equal to the design copy when it exists (drift guard)
 pkgs/fleet/crates/fleet/tests/fixtures/pm-metadata-v1.json
+  vendored, byte-identical copy of the canonical fixture (in fleetSrc)
 doc/.../fixtures/README.md
+  note the vendored copy and the re-copy rule

The fleet Nix source closure (pkgs/fleet/default.nix fleetSrc) is rooted at pkgs/, so the test's four-levels-up walk to repo-root doc/ cannot resolve in the sandbox. The conformance assertions still run under the sandbox; only the cross-check against the canonical design copy is conditional, never the enforcement.

Evidence

  • Before: fleet-smoke run 45230909797 — gh_metadata::tests::pm_metadata_version_conformance_fixtures panicked: conformance fixture set unreadable at /build/source/fleet/crates/fleet/../../../../doc/.../pm-metadata-v1.json.
  • After (focused test, remote, clean checkout): https://github.com/dezren39/fleet/actions/runs/45247950850 — test gh_metadata::tests::pm_metadata_version_conformance_fixtures ... ok, 1 passed; 0 failed.
  • After (nix build check phase, the failing job's exact command): nix build --no-link --print-out-paths .#fleet dispatched at https://github.com/dezren39/fleet/actions/runs/45251531275.

Merge Danger

Door: two-way.

Blast Radius: low — one test fixture, its path resolution, and a README note.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4cb3a9a0-a6ae-45fe-8dfc-f8c3ddf12146
Commits

Reviewing files that changed from the base of the PR and between af52642 and 06b424c.

Files selected for processing: 3

  • doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/README.md
  • pkgs/fleet/crates/fleet/src/gh_metadata.rs
  • pkgs/fleet/crates/fleet/tests/fixtures/pm-metadata-v1.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 04c46f8 into main Nov 24, 2026
1 check passed
@dezren39
dezren39 deleted the lane-code-h-13617 branch November 24, 2026 03:13
@dezren39

Copy link
Copy Markdown
Member Author

Batch A merge (lane code-i, task 21622): merge-main-in 0f2a267+06b424c98 pushed (no force), verified, PR merged as 04c46f8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant